/**
 * @Author: linzq
 * @Date: 2021-08-19 15:04:37
 * @LastEditors: linzq
 * @LastEditTime: 2021-08-24 20:33:45
 * @Description: 账户权限接口
 */

import { get, post, put } from '../../axios'

export default {
  // 列表获取
  list: function(params) {
    return get(params, '/account/list')
  },
  // 路由列表获取
  routeList: function(params) {
    return get(params, '/route/list')
  },
  // 路由列表获取
  register: function(params) {
    return post(params, '/security/register')
  },
  // 验证码倒计时
  getCountDown: function(params) {
    return get(params, '/security/countDown')
  },
  // 验证码获取
  getEmailCode: function(params) {
    return post(params, '/security/email-verify')
  },
  // 账号详情
  det: function(params) {
    return post(params, '/security/account')
  },
  // 新旧密码对比，只对比最近一次
  comparePassword: function(params) {
    return post(params, '/security/comparePassword')
  },
  // 修改
  update: function(params) {
    return put(params, '/security/account')
  }
}
